#pragma once

#include <SFML\Graphics.hpp>
#include "Animation.h"
#include "Player.h"
#include <sstream> 

class HUD
{
public:
	HUD();
	~HUD();

	void initialize(sf::RenderWindow* win, Player* playerObj);
	void update(int score);
	void cleanup();
	std::string convertInt(int number);
	int WA_currentCell;

private:
	sf::RenderWindow* m_renderWindow;
	Player* m_playerObj;

	sf::Texture* HP_Tex;
	sf::Texture* HP_Background_Tex;
	sf::Texture* HP_Frame_Tex;
	sf::Texture* WeaponsAmmoTex;
	sf::Texture* scoreBackgroundTex;
	sf::Texture* scoreSheetTex;
	sf::Texture* shipHealthTex;
	

	sf::Sprite* HP_Sprite;
	sf::Sprite* HP_Background_Sprite;
	sf::Sprite* HP_Frame_Sprite;
	sf::Sprite* WeaponsAmmoSprite;
	sf::Sprite* scoreBackgroundSprite;
	sf::Sprite* scoreSheetSprite;
	sf::Sprite* shipHealthSprite;


	
	sf::Vector2f HP_pos;
	sf::Vector2f WA_pos;
	sf::Vector2f scoreSheet_pos;
	sf::Vector2f scoreBackground_pos;
	sf::Vector2f shipHealth_pos;

	std::vector<sf::Sprite*> scoreSheetArray;
	std::vector<short> scoreSheetCellArray;

	sf::Font* percent;
	sf::Text* percentText;
	sf::Text* shipHealthText;
	int pct;
	

};

